window.onload = function(){
	setTimeout(function() {
		var async = true;
		var param = "${nomPartie}";
		var request = new AjaxRequest("POST", "rejoindrePartie.html", param, async,""); 
		
		request.handleResponse = function() {
			rep=req.xhr.responseText;
			if(rep != 0) {
				 document.location.href= "partie.html";
			}
		};
	},1000);
};

